M[Symbol.asyncIterator]
Bun

method

fs.Dir.[Symbol.asyncIterator]

[Symbol.asyncIterator](): AsyncIterator<Dirent>;

Asynchronously iterates over the directory via readdir(3) until all entries have been read.